package com.cjy.service.inter;

import com.cjy.pojo.Book;
import com.cjy.pojo.Page;
import com.cjy.pojo.User;

import java.util.List;

public interface bookService {
    public boolean login(User user);

    public int register(User user);

    public int insertBook(Book book);

    public List<Book> selectBook();

    public List<Book> selectBook(Page page);

    public List<Book> selectBook(String type, String input);

    public List<Book> selectBook(String type, String input, Page page);

    public Book selectBook(Integer id);

    public int deleteBook(Integer id);

    public int updateBook(Book book);
}
